package com.april.pattern.behavioral.interpreter;

/**
 * @author April
 * @version V1.0.0
 * @date 2019/07/09 10:02
 * @description
 */
public class NumberInterpreter implements Interpreter {
    private int number;

    public NumberInterpreter(int number) {
        this.number = number;
    }

    public NumberInterpreter(String number) {
        this.number = Integer.parseInt(number);
    }

    @Override
    public int interpret() {
        return this.number;
    }
}
